From 1d6134f87d89411ed90390459d1505b4d08fa7c5 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 21 Mar 2019 06:47:36 +0100 Subject: [PATCH] testsuite: Add a broken test This also adds some build magic so all tests that contain "-3d" in them won't be added to the Cairo renderer. Of course, this new test is such a test. --- .../gsk/compare/clip-coordinates-3d.node | 19 +++++++++++ testsuite/gsk/compare/clip-coordinates-3d.png | Bin 0 -> 269 bytes testsuite/gsk/meson.build | 32 ++++++++++-------- 3 files changed, 37 insertions(+), 14 deletions(-) create mode 100644 testsuite/gsk/compare/clip-coordinates-3d.node create mode 100644 testsuite/gsk/compare/clip-coordinates-3d.png diff --git a/testsuite/gsk/compare/clip-coordinates-3d.node b/testsuite/gsk/compare/clip-coordinates-3d.node new file mode 100644 index 0000000000..6b417ef16a --- /dev/null +++ b/testsuite/gsk/compare/clip-coordinates-3d.node @@ -0,0 +1,19 @@ +transform { + /* adding the perspective line here turns the matrix from a 2D + category into a 3D category. It does not have any visual effect. */ + transform: perspective(200) scale(2); + child: container { + color { + bounds: 0 0 50 50; + color: transparent; + } + + clip { + clip: 10 10 30 30; + child: color { + bounds: 0 0 50 50; + color: red; + } + } + } +} diff --git a/testsuite/gsk/compare/clip-coordinates-3d.png b/testsuite/gsk/compare/clip-coordinates-3d.png new file mode 100644 index 0000000000000000000000000000000000000000..1da0014351662158945f517ae9941fd77d57ce62 GIT binary patch literal 269 zcmeAS@N?(olHy`uVBq!ia0vp^DImg18H}8!s)2*+_@B27c!LaEF lhmf*I&p